#!/usr/bin/env python
# encoding: utf-8

import time


class print_time(object):
    def ptime(self):
        t = time.time()
        print(t)  # 原始时间数据
        print(int(t))  # 秒级时间戳
        print(int(round(t * 1000)))  # 毫秒级时间戳
        print(int(round(t * 1000000)))  # 微秒级时间戳

        print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(t)))


if __name__ == '__main__':
    print_time().ptime()
